/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package mpo;

/**
 *
 * @author Konrad
 */
public class Pracownik extends User {
    
    private String kategoria;
    private String NIP;
    
    Pracownik(String pesel, String imie, String nazwisko, String kategoria, String NIP){
        super(pesel);
        setImie(imie);
        setNazwisko(nazwisko);
        this.kategoria = kategoria;
        this.NIP = NIP;
    }

    public String getKategoria() {
        return kategoria;
    }
    
    public String getNIP() {
        return NIP;
    }

    public void setKategoria(String kategoria) {
        this.kategoria = kategoria;
    }

    public void setNIP(String NIP) {
        this.NIP = NIP;
    }

    @Override
    public String toString() {
        return "Pracownik{" + "kategoria = " + kategoria + ", NIP = " + NIP + '}';
    }
    
}
